package org.acra.d;

import android.content.Context;
import android.os.Environment;
import android.os.StatFs;
import android.telephony.TelephonyManager;
import android.util.Log;
import java.io.File;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
import org.acra.ACRA;
import org.acra.c.a;

public final class k
{
  public static long a()
  {
    StatFs localStatFs = new StatFs(Environment.getDataDirectory().getPath());
    return localStatFs.getBlockSize() * localStatFs.getAvailableBlocks();
  }

  public static String a(Context paramContext)
  {
    try
    {
      String str = ((TelephonyManager)paramContext.getSystemService("phone")).getDeviceId();
      return str;
    }
    catch (RuntimeException localRuntimeException)
    {
      Log.w(ACRA.LOG_TAG, "Couldn't retrieve DeviceId for : " + paramContext.getPackageName(), localRuntimeException);
    }
    return null;
  }

  public static long b()
  {
    StatFs localStatFs = new StatFs(Environment.getDataDirectory().getPath());
    return localStatFs.getBlockSize() * localStatFs.getBlockCount();
  }

  public static String b(Context paramContext)
  {
    File localFile = paramContext.getFilesDir();
    if (localFile != null)
      return localFile.getAbsolutePath();
    Log.w(ACRA.LOG_TAG, "Couldn't retrieve ApplicationFilePath for : " + paramContext.getPackageName());
    return "Couldn't retrieve ApplicationFilePath";
  }

  public static String c()
  {
    StringBuilder localStringBuilder = new StringBuilder();
    int i = 1;
    while (true)
    {
      try
      {
        Enumeration localEnumeration1 = NetworkInterface.getNetworkInterfaces();
        if (localEnumeration1.hasMoreElements())
        {
          Enumeration localEnumeration2 = ((NetworkInterface)localEnumeration1.nextElement()).getInetAddresses();
          if (localEnumeration2.hasMoreElements())
          {
            InetAddress localInetAddress = (InetAddress)localEnumeration2.nextElement();
            if (localInetAddress.isLoopbackAddress())
              break label125;
            if (i == 0)
              localStringBuilder.append('\n');
            localStringBuilder.append(localInetAddress.getHostAddress().toString());
            j = 0;
            i = j;
            continue;
          }
          continue;
        }
      }
      catch (SocketException localSocketException)
      {
        ACRA.log.b(ACRA.LOG_TAG, localSocketException.toString());
      }
      return localStringBuilder.toString();
      label125: int j = i;
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     org.acra.d.k
 * JD-Core Version:    0.6.2
 */